﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Grid;
    using DevExpress.XtraLayout;
    using DevExpress.XtraLayout.Utils;
    using APP.HELPER;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Common;
    using DevExpress.XtraGrid.Views.Base;

    public class xuc03aTBH : Common.xucBase
    {
        private BandedGridColumn colDescription;
        private BandedGridColumn colEmployeeCode;
        private BandedGridColumn colEmployeeName;
        private BandedGridColumn colFromDate;
        private BandedGridColumn colIsPay;
        private BandedGridColumn colNewAllowance1;
        private BandedGridColumn colNewAllowance2;
        private BandedGridColumn colNewAllowance3;
        private BandedGridColumn colNewAllowance4;
        private BandedGridColumn colNewSalary;
        private BandedGridColumn colOldAllowance1;
        private BandedGridColumn colOldAllowance2;
        private BandedGridColumn colOldAllowance3;
        private BandedGridColumn colOldAllowance4;
        private BandedGridColumn colOldSalary;
        private BandedGridColumn colRate;
        private BandedGridColumn colSocialInsuranceCode;
        private BandedGridColumn colToDate;
        private BandedGridColumn colType;
        private IContainer components;
        private BandedGridView gbList;
        private GridControl gcList;
        private GridBand gridBand1;
        private GridBand gridBand2;
        private GridBand gridBand3;
        private GridBand gridBand4;
        private GridBand gridBand5;
        private LayoutControl layoutControl1;
        private LayoutControlGroup layoutControlGroup1;
        private LayoutControlGroup layoutControlGroup2;
        private LayoutControlItem layoutControlItem1;
        private Guid m_InsuranceTableListID;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemDateEdit repMonth;
        private RepositoryItemPictureEdit rptPhoto;

        public event ItemSelectedEventHander ItemSelected;

        public xuc03aTBH()
        {
            this.components = null;
            this.m_InsuranceTableListID = Guid.Empty;
            this.InitializeComponent();
            this.Init();
        }

        public xuc03aTBH(Guid InsuranceTableListID)
        {
            this.components = null;
            this.m_InsuranceTableListID = Guid.Empty;
            this.InitializeComponent();
            this.m_InsuranceTableListID = InsuranceTableListID;
            this.Init();
        }

        public void Delete()
        {
            bool flag = false;
            int[] selectedRows = this.gbList.GetSelectedRows();
            if (XtraMessageBox.Show("Bạn c\x00f3 muốn x\x00f3a kh\x00f4ng?", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No)
            {
                string str;
                object rowCellValue;
                base.SetWaitDialogCaption("Đang x\x00f3a...");
                HRM_INSURANCE hrm_insurance = new HRM_INSURANCE();
                for (int i = selectedRows.Length; i > 0; i--)
                {
                    flag = true;
                    rowCellValue = this.gbList.GetRowCellValue(selectedRows[i - 1], "InsuranceID");
                    if (rowCellValue != null)
                    {
                        SYS_LOG.Insert("Danh S\x00e1ch Điều Chỉnh Lao Động V\x00e0 Mức Đ\x00f3ng BHXH, BHYT", "Xo\x00e1", rowCellValue.ToString());
                        str = hrm_insurance.Delete(new Guid(rowCellValue.ToString()));
                        if (str == "OK")
                        {
                            this.gbList.DeleteRow(selectedRows[i - 1]);
                        }
                        else if (str != "OK")
                        {
                            MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a\r\n" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        }
                    }
                }
                this.DoHide();
                if (!flag && (hrm_insurance.GetList().Rows.Count != 0))
                {
                    rowCellValue = this.gbList.GetFocusedRowCellValue("InsuranceID");
                    if (rowCellValue != null)
                    {
                        SYS_LOG.Insert("Danh S\x00e1ch Điều Chỉnh Lao Động V\x00e0 Mức Đ\x00f3ng BHXH, BHYT", "Xo\x00e1", rowCellValue.ToString());
                        base.SetWaitDialogCaption("Đang x\x00f3a...");
                        str = hrm_insurance.Delete(new Guid(rowCellValue.ToString()));
                        if (str == "OK")
                        {
                            this.gbList.DeleteRow(this.gbList.FocusedRowHandle);
                        }
                        else if (str != "OK")
                        {
                            MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a\r\n" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        }
                        this.DoHide();
                    }
                }
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        protected override bool ExportPermision()
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Danh S\x00e1ch Điều Chỉnh Lao Động V\x00e0 Mức Đ\x00f3ng BHXH, BHYT", "Xuất");
            return base.ExportPermision();
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void Init()
        {
            this.gcList.DataSource = new HRM_INSURANCE().GetList03aTBH(this.m_InsuranceTableListID);
        }

        private void InitializeComponent()
        {
            this.gcList = new GridControl();
            this.gbList = new BandedGridView();
            this.gridBand1 = new GridBand();
            this.colType = new BandedGridColumn();
            this.colEmployeeCode = new BandedGridColumn();
            this.colEmployeeName = new BandedGridColumn();
            this.colSocialInsuranceCode = new BandedGridColumn();
            this.gridBand5 = new GridBand();
            this.colOldSalary = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colOldAllowance1 = new BandedGridColumn();
            this.colOldAllowance2 = new BandedGridColumn();
            this.colOldAllowance3 = new BandedGridColumn();
            this.colOldAllowance4 = new BandedGridColumn();
            this.gridBand3 = new GridBand();
            this.colNewSalary = new BandedGridColumn();
            this.colNewAllowance1 = new BandedGridColumn();
            this.colNewAllowance2 = new BandedGridColumn();
            this.colNewAllowance3 = new BandedGridColumn();
            this.colNewAllowance4 = new BandedGridColumn();
            this.gridBand2 = new GridBand();
            this.colFromDate = new BandedGridColumn();
            this.repMonth = new RepositoryItemDateEdit();
            this.colToDate = new BandedGridColumn();
            this.gridBand4 = new GridBand();
            this.colRate = new BandedGridColumn();
            this.colIsPay = new BandedGridColumn();
            this.colDescription = new BandedGridColumn();
            this.rptPhoto = new RepositoryItemPictureEdit();
            this.layoutControl1 = new LayoutControl();
            this.layoutControlGroup1 = new LayoutControlGroup();
            this.layoutControlGroup2 = new LayoutControlGroup();
            this.layoutControlItem1 = new LayoutControlItem();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repCalculator.BeginInit();
            this.repMonth.BeginInit();
            this.repMonth.VistaTimeProperties.BeginInit();
            this.rptPhoto.BeginInit();
            this.layoutControl1.BeginInit();
            this.layoutControl1.SuspendLayout();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlGroup2.BeginInit();
            this.layoutControlItem1.BeginInit();
            base.SuspendLayout();
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(5, 0x19);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.rptPhoto, this.repCalculator, this.repMonth });
            this.gcList.Size = new Size(0x397, 0x253);
            this.gcList.TabIndex = 5;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand1, this.gridBand5, this.gridBand3, this.gridBand2, this.gridBand4 });
            this.gbList.BorderStyle = BorderStyles.NoBorder;
            this.gbList.ColumnPanelRowHeight = 0x24;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.colType, this.colEmployeeCode, this.colEmployeeName, this.colSocialInsuranceCode, this.colOldSalary, this.colOldAllowance1, this.colOldAllowance2, this.colOldAllowance3, this.colOldAllowance4, this.colNewSalary, this.colNewAllowance1, this.colNewAllowance2, this.colNewAllowance3, this.colNewAllowance4, this.colFromDate, this.colToDate, 
                this.colRate, this.colIsPay, this.colDescription
             });
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupCount = 1;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.GroupDrawMode = GroupDrawMode.Office2003;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.SortInfo.AddRange(new GridColumnSortInfo[] { new GridColumnSortInfo(this.colType, ColumnSortOrder.Ascending) });
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gridBand1.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand1.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand1.Caption = "Th\x00f4ng tin nh\x00e2n vi\x00ean";
            this.gridBand1.Columns.Add(this.colType);
            this.gridBand1.Columns.Add(this.colEmployeeCode);
            this.gridBand1.Columns.Add(this.colEmployeeName);
            this.gridBand1.Columns.Add(this.colSocialInsuranceCode);
            this.gridBand1.MinWidth = 20;
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.Width = 0x116;
            this.colType.Caption = "Loại";
            this.colType.FieldName = "Type";
            this.colType.Name = "colType";
            this.colEmployeeCode.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.OptionsColumn.AllowEdit = false;
            this.colEmployeeCode.OptionsColumn.ReadOnly = true;
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.Width = 0x4f;
            this.colEmployeeName.Caption = "Họ v\x00e0 t\x00ean";
            this.colEmployeeName.FieldName = "EmployeeName";
            this.colEmployeeName.Name = "colEmployeeName";
            this.colEmployeeName.OptionsColumn.AllowEdit = false;
            this.colEmployeeName.OptionsColumn.ReadOnly = true;
            this.colEmployeeName.Visible = true;
            this.colEmployeeName.Width = 0x7b;
            this.colSocialInsuranceCode.Caption = "Số sổ BHXH";
            this.colSocialInsuranceCode.FieldName = "SocialInsuranceCode";
            this.colSocialInsuranceCode.Name = "colSocialInsuranceCode";
            this.colSocialInsuranceCode.OptionsColumn.AllowEdit = false;
            this.colSocialInsuranceCode.OptionsColumn.ReadOnly = true;
            this.colSocialInsuranceCode.Visible = true;
            this.colSocialInsuranceCode.Width = 0x4c;
            this.gridBand5.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand5.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand5.Caption = "Tiền lương v\x00e0 phụ cấp (mức cũ)";
            this.gridBand5.Columns.Add(this.colOldSalary);
            this.gridBand5.Columns.Add(this.colOldAllowance1);
            this.gridBand5.Columns.Add(this.colOldAllowance2);
            this.gridBand5.Columns.Add(this.colOldAllowance3);
            this.gridBand5.Columns.Add(this.colOldAllowance4);
            this.gridBand5.Name = "gridBand5";
            this.gridBand5.Width = 0x177;
            this.colOldSalary.Caption = "Tiền lương, tiền c\x00f4ng";
            this.colOldSalary.ColumnEdit = this.repCalculator;
            this.colOldSalary.FieldName = "OldSalary";
            this.colOldSalary.Name = "colOldSalary";
            this.colOldSalary.Visible = true;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colOldAllowance1.Caption = "Chức vụ";
            this.colOldAllowance1.ColumnEdit = this.repCalculator;
            this.colOldAllowance1.FieldName = "OldAllowance1";
            this.colOldAllowance1.Name = "colOldAllowance1";
            this.colOldAllowance1.Visible = true;
            this.colOldAllowance2.Caption = "Th\x00e2m ni\x00ean VK";
            this.colOldAllowance2.ColumnEdit = this.repCalculator;
            this.colOldAllowance2.FieldName = "OldAllowance2";
            this.colOldAllowance2.Name = "colOldAllowance2";
            this.colOldAllowance2.Visible = true;
            this.colOldAllowance3.Caption = "Th\x00e2m ni\x00ean nghề";
            this.colOldAllowance3.ColumnEdit = this.repCalculator;
            this.colOldAllowance3.FieldName = "OldAllowance3";
            this.colOldAllowance3.Name = "colOldAllowance3";
            this.colOldAllowance3.Visible = true;
            this.colOldAllowance4.Caption = "Khu vực";
            this.colOldAllowance4.ColumnEdit = this.repCalculator;
            this.colOldAllowance4.FieldName = "OldAllowance4";
            this.colOldAllowance4.Name = "colOldAllowance4";
            this.colOldAllowance4.Visible = true;
            this.gridBand3.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand3.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand3.Caption = "Tiền lương v\x00e0 phụ cấp mức mới";
            this.gridBand3.Columns.Add(this.colNewSalary);
            this.gridBand3.Columns.Add(this.colNewAllowance1);
            this.gridBand3.Columns.Add(this.colNewAllowance2);
            this.gridBand3.Columns.Add(this.colNewAllowance3);
            this.gridBand3.Columns.Add(this.colNewAllowance4);
            this.gridBand3.MinWidth = 20;
            this.gridBand3.Name = "gridBand3";
            this.gridBand3.Width = 0x177;
            this.colNewSalary.Caption = "Tiền lương, tiền c\x00f4ng";
            this.colNewSalary.ColumnEdit = this.repCalculator;
            this.colNewSalary.FieldName = "NewSalary";
            this.colNewSalary.Name = "colNewSalary";
            this.colNewSalary.OptionsColumn.AllowEdit = false;
            this.colNewSalary.OptionsColumn.ReadOnly = true;
            this.colNewSalary.Visible = true;
            this.colNewAllowance1.Caption = "Chức vụ";
            this.colNewAllowance1.ColumnEdit = this.repCalculator;
            this.colNewAllowance1.FieldName = "NewAllowance1";
            this.colNewAllowance1.Name = "colNewAllowance1";
            this.colNewAllowance1.OptionsColumn.AllowEdit = false;
            this.colNewAllowance1.OptionsColumn.ReadOnly = true;
            this.colNewAllowance1.Visible = true;
            this.colNewAllowance2.Caption = "Th\x00e2m ni\x00ean VK";
            this.colNewAllowance2.ColumnEdit = this.repCalculator;
            this.colNewAllowance2.FieldName = "NewAllowance2";
            this.colNewAllowance2.Name = "colNewAllowance2";
            this.colNewAllowance2.OptionsColumn.AllowEdit = false;
            this.colNewAllowance2.OptionsColumn.ReadOnly = true;
            this.colNewAllowance2.Visible = true;
            this.colNewAllowance3.Caption = "Th\x00e2m ni\x00ean nghề";
            this.colNewAllowance3.ColumnEdit = this.repCalculator;
            this.colNewAllowance3.FieldName = "NewAllowance3";
            this.colNewAllowance3.Name = "colNewAllowance3";
            this.colNewAllowance3.OptionsColumn.AllowEdit = false;
            this.colNewAllowance3.OptionsColumn.ReadOnly = true;
            this.colNewAllowance3.Visible = true;
            this.colNewAllowance4.Caption = "Khu vực";
            this.colNewAllowance4.ColumnEdit = this.repCalculator;
            this.colNewAllowance4.FieldName = "NewAllowance4";
            this.colNewAllowance4.Name = "colNewAllowance4";
            this.colNewAllowance4.OptionsColumn.AllowEdit = false;
            this.colNewAllowance4.OptionsColumn.ReadOnly = true;
            this.colNewAllowance4.Visible = true;
            this.gridBand2.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand2.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand2.Caption = "Thời gian";
            this.gridBand2.Columns.Add(this.colFromDate);
            this.gridBand2.Columns.Add(this.colToDate);
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 150;
            this.colFromDate.Caption = "Đ\x00f3ng từ th\x00e1ng, năm";
            this.colFromDate.ColumnEdit = this.repMonth;
            this.colFromDate.FieldName = "FromDate";
            this.colFromDate.Name = "colFromDate";
            this.colFromDate.OptionsColumn.AllowEdit = false;
            this.colFromDate.OptionsColumn.ReadOnly = true;
            this.colFromDate.Visible = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repMonth.Mask.EditMask = "MM/yyyy";
            this.repMonth.Mask.UseMaskAsDisplayFormat = true;
            this.repMonth.Name = "repMonth";
            this.repMonth.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.colToDate.Caption = "Đến th\x00e1ng năm";
            this.colToDate.ColumnEdit = this.repMonth;
            this.colToDate.FieldName = "ToDate";
            this.colToDate.Name = "colToDate";
            this.colToDate.Visible = true;
            this.gridBand4.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand4.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand4.Caption = "Ghi ch\x00fa kh\x00e1c";
            this.gridBand4.Columns.Add(this.colRate);
            this.gridBand4.Columns.Add(this.colIsPay);
            this.gridBand4.Columns.Add(this.colDescription);
            this.gridBand4.MinWidth = 20;
            this.gridBand4.Name = "gridBand4";
            this.gridBand4.Width = 0xe1;
            this.colRate.Caption = "Tỷ lệ nộp bổ sung";
            this.colRate.FieldName = "Rate";
            this.colRate.Name = "colRate";
            this.colRate.Visible = true;
            this.colIsPay.Caption = "Trả thẻ";
            this.colIsPay.FieldName = "IsPay";
            this.colIsPay.Name = "colIsPay";
            this.colIsPay.Visible = true;
            this.colDescription.Caption = "Ghi ch\x00fa";
            this.colDescription.FieldName = "Description";
            this.colDescription.Name = "colDescription";
            this.colDescription.OptionsColumn.AllowEdit = false;
            this.colDescription.OptionsColumn.ReadOnly = true;
            this.colDescription.Visible = true;
            this.rptPhoto.CustomHeight = 0x30;
            this.rptPhoto.Name = "rptPhoto";
            this.rptPhoto.NullText = "[Chưa chọn h\x00ecnh]";
            this.rptPhoto.SizeMode = PictureSizeMode.Zoom;
            this.layoutControl1.Controls.Add(this.gcList);
            this.layoutControl1.Dock = DockStyle.Fill;
            this.layoutControl1.Location = new Point(0, 0);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new Size(0x3a1, 0x271);
            this.layoutControl1.TabIndex = 6;
            this.layoutControl1.Text = "layoutControl1";
            this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlGroup2 });
            this.layoutControlGroup1.Location = new Point(0, 0);
            this.layoutControlGroup1.Name = "layoutControlGroup1";
            this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Size = new Size(0x3a1, 0x271);
            this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible = false;
            this.layoutControlGroup2.CustomizationFormText = "MẪU SỐ 03A-TBH: DANH S\x00c1CH ĐIỀU CHỈNH LAO ĐỘNG V\x00c0 MỨC Đ\x00d3NG BHXH, BHYT";
            this.layoutControlGroup2.ExpandButtonVisible = true;
            this.layoutControlGroup2.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1 });
            this.layoutControlGroup2.Location = new Point(0, 0);
            this.layoutControlGroup2.Name = "layoutControlGroup2";
            this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup2.Size = new Size(0x3a1, 0x271);
            this.layoutControlGroup2.Text = "MẪU SỐ 03A-TBH: DANH S\x00c1CH ĐIỀU CHỈNH LAO ĐỘNG V\x00c0 MỨC Đ\x00d3NG BHXH, BHYT";
            this.layoutControlItem1.Control = this.gcList;
            this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
            this.layoutControlItem1.Location = new Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new Size(0x39b, 0x257);
            this.layoutControlItem1.Text = "layoutControlItem1";
            this.layoutControlItem1.TextSize = new Size(0, 0);
            this.layoutControlItem1.TextToControlDistance = 0;
            this.layoutControlItem1.TextVisible = false;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.layoutControl1);
            base.Name = "xuc03aTBH";
            base.Size = new Size(0x3a1, 0x271);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repCalculator.EndInit();
            this.repMonth.VistaTimeProperties.EndInit();
            this.repMonth.EndInit();
            this.rptPhoto.EndInit();
            this.layoutControl1.EndInit();
            this.layoutControl1.ResumeLayout(false);
            this.layoutControlGroup1.EndInit();
            this.layoutControlGroup2.EndInit();
            this.layoutControlItem1.EndInit();
            base.ResumeLayout(false);
        }

        public void LoadData(Guid InsuranceTableListID)
        {
            this.m_InsuranceTableListID = InsuranceTableListID;
            this.Init();
        }

        private void RaiseItemSelectedEventHander(HRM_INSURANCE item)
        {
            if (this.ItemSelected != null)
            {
                this.ItemSelected(this, item);
            }
        }

        public delegate void ItemSelectedEventHander(object sender, HRM_INSURANCE item);
    }
}

